package com.twohand.utils.Response;


import lombok.Getter;

public enum ResponseCode {
    RC200(200,"请求成功"),
    RC201(201,"操作成功"),
    RC204(204,"删除成功"),
    RC401(401,"无权限访问"),
    RC404(404,"资源不存在"),
    RC500(500,"服务器错误"),
    RC10001(10001,"参数错误");
    public static String sAdd = "操作成功";
    public static String fAdd = "操作失败";
    public static String sMod = "修改成功";
    public static String fMod = "修改失败";
    public static String sDel = "删除成功";
    public static String fDel = "删除失败";

    @Getter
    private int code;
    @Getter
    private String message;
    ResponseCode(int code,String message){
        this.code = code;
        this.message = message;
    }


}
